﻿#pragma execution_character_set("utf-8")
// 本文件为utf-8 编码格式

#include "GDStatisticsUtil.h"


void GDStatisticsUtil::initUMStatistics(){
	CCLog("初始化友盟统计...");
	if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS){
		umSDK::startWithAppkey("556fe23e67e58e4d970057fd", "");
	}
	else{
		umSDK::startWithAppkey("556fe17f67e58e7eb3004e95", "");
	}
}

void GDStatisticsUtil::onInitView(const char* viewName, const char* eventId){
	if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32){
		CCLog("三三三三统计 InitView，viewName=%s,eventId=%s", viewName, eventId);
	}
	umSDK::onEventValue(eventId, viewName);
}

void GDStatisticsUtil::onBtnClick(const char* btnName, const char* eventId){
	if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32){
		CCLog("三三三三统计 onBtnClick，btnName=%s,eventId=%s", btnName, eventId);
	}
	umSDK::onEventValue(eventId, btnName);
}